<?php
/**
 * class ErrorController
 *  контроллер вывода  страницы 404
 */
class ErrorController extends AbstractModule {
//    private $view;
    public function __construct() {
        parent::__construct();
        $this->setAllowedPaths(array(
            'index',
        ));
    }
    /**
     * каталог error/index
     * @return boolean 
     */
    public function index() {
        //инклудим вьюшу error
//        $this->view = new ErrorView();
      
        $pagedata = array();     
        $pagedata[] = array('data'=> ErrorView::getMessage(), 'region'=>'content');
        $this->output($pagedata);
        return true;
    }

    public function delete() {
        
    }

    public function install() {
        
    }
    
    public function hook_preaction() {
//        echo 'hook preaction was invoked in '.__CLASS__.' !<br>';
        
    }
}

?>